refactor(main): make it return bootstrap function

instead of putting modules into main.js it's setting it in index