THREE.JS Stripped down for running in a web worker.