fix deprecated calls to three.js