Including basic javascript files in rails 8

Answering my own question, this is largely solved by How Do I Integrate JavaScript With Rails 7? which doesn’t use import maps and is raw js.