JSHint warning fixed