FIX: typo in detect.js

There was a type in detect.js that would cause the test case to fail.