conform to newest version of three.js library