fixed touch detection

this is how Modernizr implements it:
https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js