結果 : check if element has id javascript