Another part was the abysmal API that Javascript (and mostly still today) offers to work with the DOM.