Use Modernizr for input type detection