add iteration over the graph, meager unit tests
use a 4-space indent convention
use require js for classes