Create isActiveDirective.js