Fix JSHint warnings

Fix all JSHint warnings. Thought I had already done this, but obviously
not.