one js for each graph