https://www.learnsteps.com/javascript-increasing-performance-by-handling-scopes-smartly/
Javascript: Increasing performance by handling Scopes Smartly.