refactoring out threejs_interface into own file