Code cleanup in HomepageApp.js