Updated modernizr; optimized javascript