Get a graph of dependencies for a JS file, using browserify resolution algorithm