結果 : javascript test if a function exists