結果 : how to avoid in javascript