結果 : how to pass object in javascript function