Modularized by creating app.js