A swipe library in pure Javascript