Digs into a javascript file looking for require calls. Used to statically extract common js dependencies.