The code makes use of some simple WebGL utilities (js/wglu) and the glMatrix library to reduce complexity of the WebGL code, but neither are necessary for using WebVR.
You can run the sample live at http://amormaid.tk/webvr/webvr.html
WebVR support browser is needed
#reference