Try window.Modernizr.load(); instead of just Modernizr.load()