Added jsHint globals, fixed semi-colons, test fix.

What started as a simple "Let's see what jsHint issues arise"
made me find a couple things.

One section was missing semi-colons, which I added (which is
just a styling change).

After fixing globals and the semi-colons, I found a section that
was referencing a variable that wasn't actually set.  I saw in
a similar test created it before starting the increment, which I
blindly copied into the test.

Tests passed before and after the changes.  These are all styling
changes.