directive.js update