Added js for selecting point on the graph