Fixed JS tests by stubbing Modernizr