Getting HTML5 games to render properly