結果 : break out of nested loop javascript