HTML Removing button stops game from working

By default the packaged HTML games have 4 buttons on the bottom (pause, resume, clear data, fullscreen). If I comment these buttons out in the .html file, the game won’t load and shows an error “Uncaught TypeError: Cannot read property ‘addEventListener’ of null”

How do I solve this? This is the code I commented out:

	<div class="col-sm-2 text-center"></div>
	<div class="col-sm-2 text-center"><button type="button" class="btn btn-primary" onclick="Module['pauseMainLoop']();"  >Pause</button></div>
	<div class="col-sm-2 text-center"><button type="button" class="btn btn-primary" onclick="Module['resumeMainLoop']();" >Resume</button></div>
	<div class="col-sm-2 text-center"><button type="button" class="btn btn-primary" onclick="$.jStorage.flush()">Clear Stored Game</button></div>
	<div class="col-sm-2 text-center"><button type="button" class="btn btn-primary"  id="fullscreen_request" >FullScreen</button></div>
	<div class="col-sm-2 text-center"></div>

if i had to guess, i think the game is expecting to find the “fullscreen_request” element.

anyways, you can hide the buttons by adding to the CSS class:

.buttonarea {
   display: none;
   ...
}

the buttons will still be in the game – just not visible…