Moved the directive into the directive.js from controllers.js