implement fixes for the HTML/WebGL version for use on mobile