結果 : javascript function not defined even though it is