Minimal JS object for detecting touch/swipe via a callback function with arguments: direction and distance. Only fired on touchend. Works on PC/mac browsers as well.