move clock support for NPM from header.js to THREE.Clock.now.  Rename 'window' to 'self'.