I don't know why you would want to use javascript... have a look at this cinder space simulator, it supports oculus and should be easy to convert the cinder app to a screensaver - not to sure about a moving desktop background. http://roberthodgin.com/oculus-rift-gravity/