Walks a JavaScript AST, giving each AST node a unique and meaningful ID