update html/js/directives.js