Forked from Juan S. Escobar Added a few improvements: touchevents for pinching and dragging when you include hammer.js (http://eightmedia.github.com/hammer.js/) extra functions for panning and zooming from within a javascript function