separating app.js in controlers and directives