updated code to remove the setTimeout call

Based on the solution proposed at
https://hacks.mozilla.org/2013/04/detecting-touch-its-the-why-not-the-ho
w/ - removing the setTimeout call and replacing with a preventDefault
call.