Jshint cleanup

Fairly non-controversial issues to bring us below 1000 warnings, which was effectively noise. I'll tackle more later but I was looking for something fairly mindless to do.