html 5 game, OO Js