Added panning/zooming functionality to index2.html.

Zooming too fast or in some positions will make the graph disappear.
Panning is buggy at some zoom levels.