Updated Three.js api