This is a much larger and complex PR, but does several key things:
Removes many of the interdependencies between various files. Not all are removed, however the structure of dependency is considerably simpler.
Removal of "core", it only contained the bootstrap.
Numerous syntax and code cleanliness fixes. This is things such as comments, structure, variable names etc.
After this, there's a few PR's left:
Various harm reduction changes - Target ranges, preset naming, copy in text as mentioned in #11
Splitting of plotting's model calculations from graphics generation, which will allow for better testing of models and make the code usable with other renderers (e.g. Jupyter, Google Sheets, etc)
Refactoring of "estrannaise.js", as it's large, has a lot of superfluous code. No other files depend on it (save for the HTML), and all DOM interactions happen within it, so complex bugs from refactoring should be contained.
This is a much larger and complex PR, but does several key things:
After this, there's a few PR's left: