Updated comments on directives.js