結果 : javascript call a function if it exists