Fixed Modernizr typeof check