solution to https://github.com/jrburke/requirejs/issues/916