Tic-Tac-Toe in JavaScript and HTML5 optimized for offline play on a mobile device