finally figured out error with html5 game example in which multiple screens were being showed simultaneously. The solution was that the css was improperly defined (missing semi-colon) and display : none; was never reached.