結果 : javascript define object with functions