Bring webgl version up-to-date with js code.
Merge pull request #2 from pfoltyn/webgl-beta

Bring webgl code up-to-date with js code