Improve local variable lookup, introduce findVariables.js