use hammer.js to detect gesture