Update directives.js