cleanup: fix variable scope in misc/params.js

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
cleanup: fix variable scope in appSwitcher

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
cleanup: fix variable scope in ui/layout.js

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
cleanup: fix variable scope in lookingGlass.js
cleanup: fix variable scope in main.js

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
cleanup: fix variable scope in runDialog.js

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
cleanup: fix variable scope in settings.js

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
cleanup: fix variable scope in workspace.js

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
cleanup: fix variable scope in expoThumbnail.js

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
cleanup: fix variable scope in extensionSystem.js

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Merge pull request #2000 from nkoep/for_loop_scope_cleanup

[2.0] Code clean up