JS Pan Zoom code for autoscaled SVGs