I did it in coffeescript with Hammer