put block variables in scope before running a JS function