perm.js and threejs