結果 : check function exists javascript