結果 : javascript only call function if exists