Othello game in javascript for firefox OS