Adding OpenGL Bindings to Javascript. Changes carried forward from cocos2d-iPhone