Converted feature detection to Modernizr

Previous feature detection had issues with Internet explorer