adds directives.js