seperate directives.js