Replacing with correct operator

I put | instead of 'or' b/c javascript you know