CommonJSify that Swipe thing. Use touch events for enabled devices.