Minor update directives.js