update HTML5 game