On the whys on how to use Vanilla JavaScript - i.e. without a framework - to build modular components in a Ruby on Rails application. This proposes a way to structure JavaScript files using ES6 imports and using widely accepted standards in the JavaScript community.