Create ddirective.js