CORRECT REGEX FOR JAVASCRIPT

The javascript regex syntax is different from that of ruby therefore the code had to change. Also changed the method to winnerAlert method to gameOver in order to reflect the view's changes.
SOLVE MERGE CONFLICTS