Add app init to main.js