Fixed feature detection failing with RequireJS