結果 : javascript determine if function exists