Takes a directory of javascript code and makes a mapping of function name to function implementation.