add js folder place controller code to app.js for seperation of the controller