drawing simple graph using graph.js