Also add the Modernizr variable into the function parameters. This is how requireJS works.