Get a list of free variables used in a JS program