結果 : javascript run function if element exists