javascript map check if value exists