結果 : javascript check if a function exists