Create domdetector.js