set up js on graph
set up js on graph