js foreach return continue