結果 : javascript define a function inside an object