correction on directives.js