Pass stricter JSLint

Turns out noise wasn't working properly because I did something dumb in
response to warning not to declare variables in a loop. Declared the
variables at the top of the function like I should have done and merely
assigned them in the loop.