import detector.js for three.js