Added 'jump to position' code when the graph or image are clicked on