Modification to the SimpleOpenGLView to work with WebGL