Converts some JS files into exported modules. Also removes the Aside class as this was not used anywhere.
Aside
#38869 (moved)