Small fixes for WebGL
Merge pull request #20 from joelross/fix-webgl

Small fixes for WebGL