Added Modernizr support and fixed IE10 detection