Move the bootstrapping process back to main.js