Update vr-widget.js

fixed small bugs when adding entities and removing them, ended up with more code to clean really