Walks a JavaScript AST and collects Identifier nodes