graph.js: add graph and its dependencies to application.js