結果 : how to pass list in javascript function