remove use of 'window' per @mrdoob and replace with 'self'.  Remove archiac 'new Date().getTime()' fallback from THREE.Clock, it is well supported in all modern browsers.