Fix scope issue when iterating through a loop. Additionally, this avoid generating a function for each loop step.
Fix scope issue when iterating through a loop. Additionally, this avoid generating a function for each loop step.

knalli/jenkins-nodejs-watcher