Update detector.js

added angular js test