結果 : define function in object javascript