Adding sample code to the graph js