Started porting the necessary portions of THREE.js to run server-side