Added VR mode

Also fixed a crash issue with WebVR-enabled Firefox