Create Detector.js