Change }())
to })()
;) This does look suspicious.
UPDATED.
(function() {
$.fn.touchpanzoom = function() {
var $img = $(this)
var zoomer = $img.panzoom()
var hammer = new Hammer($img.get(0), {
prevent_default: true
}) <--- add () here
Is this a legit piece of code you have? Why not to call it , every time? Right now , it looks like You're just adding a piece of this code(which should run once on load , but not on reload). I think that's the problem.