Optimized version of modernizr