Passing game to HTML