for HTML5 game sample