add prototype of a graph in javascript
add parser to input graphs as text