Migrate graph to browserify (part of issue #60)