First commit
Refactor swipe.js into a library
wip