Fix some JSHint warnings