javascript value exists in array of objects