Update directive.js