The game of set in javascript