Create directive.js