Using Modernizr to improve compatibility