Update controllers.js

Cleaning up app code.