Update vr-widget.js

added latest chnages, still have a lot to clean up