Issues/9/graph.js

implements modular design pattern and grunt compiling