replace 'window' with 'self' in src/three.js for both NodeJS and IE10 compatibility.