That's not a good analogy. With chrome extension you (almost) always need a background.html, background.js, popup.html, etc. Perhaps chrome extensions would be better if you started by defining a class or writing functions without unnecessary html tags and files. This is a bit different than html and bootstrap where you often dont need most of the framework.