Code to draw the graph on web browser