We want the js-tpl to still understand require directives.

adds proper directiveForLine