I added some stuff to your boilerplate; maybe a bit too much for a pull request, but anyway... I intend to add lighting and texture mapping soon.
extracted js to separate file
changed to cube model
moved functions to start of parent function
moved around some functions
moved the shaders back into js and css to separate file
removed some global variables
minor cleanup and renamings