added Detector.js