Javascript: for, break