The problem is the web was designed for documents not apps. And JS wasn’t designed for what it does now. The closest thing we had to a sane development toolkit was Adobe Flex. Someone came up with that and it was ok. But other more powerful forces particularly Apple made it disappear. Google is in charge now maybe it’s up to them.