You do only have to write one language, and web pages are highly backwards compatible. You don't need to use any NPM packages.