better support for strict mode in detect.js