Show a message when two or more numbers on the same row, column, or diagonal match

Use JavaScript to check for diagonal matches.