updating three.js