結果 : javascript not a function when it is defined