Change calls in MainController.js

discovered a /:id is how you can define a variable in express.js. using
this can make it easier to keep a mvc  design.