Fixed ref to app in main.js