javascript find if element exists in array