Added better modernizr check