Add var to all of these loop variables

Some of them are declared earlier in their functions, but a couple weren't, which
may have been a (partial) cause of

https://trac.torproject.org/projects/tor/ticket/9507
https://trac.torproject.org/projects/tor/ticket/9505

Conflicts:

	chromium/rules.js