Moving js files towards module pattern - app.js