Great library, thanks :) There is a typo in the error message:
throw Error("Invalid Parameters. Firt parameter to SVGPanZoom should be an svg element")
should be:
throw Error("Invalid Parameters. First parameter to SVGPanZoom should be an svg element")