Minor modification directives.js