結果 : break not working in for loop javascript