Update main.js to load all directives