Simple tictactoe game implemented in Javascript using DynJS runtime