performatic changes

I've made some changes in the main.js aiming for a better perfomance in the page load.


Would load them with the `async` attribute work here?