結果 : javascript for loop not working