title: Javascript: safe replace function or variable name?
body: <p>I'm working with some deminified javascript that I want to reverse  engineer. It  would be helpful if I could start giving things variable names. Unfortunately the code has a habit of reusing function and variable names globally and in function scopes, how can I safely replace variable names in these cases in an ast-aware way?</p>