Combining processing, javascript, jquery and hammer.js. Still some bugs.