Update controllers.js and directives.js