SVG Panning and zooming javascript library using the global svg viewbox