結果 : if attribute exists javascript