add directives.js