Walks a JavaScript AST and adds a "parent" property to each node