added support for threejs