don't put three.js variables in global scope.