I'd replace all the CSS, HTML and JavaScript APIs mess and replace it with something like low-level API/interface that frontend frameworks could compile to.
And why not expand it to OS level? Then we could have very low-effort cross-platform native and web apps.