completed detection.js module