Tic-tac-toe app using Phonegap