Moved the VR initialization code out of the markup and into
core.js where it belongs.