javascript foreach break statement