Some JSHint fixes