extracted refresh plugin (at least partially)
removed all helper function from main.js
moved local storage to plugin
moved about everything out of main.js now I need to make sure the behavior is the same as before for everything
we are rendering everything twice again