use origin directives.js file in monitor