fixing requirejs plugin tpl writing