Refactored the WebGL init stuff to its own file