Added javascript to front page and graph