fix loading of comp with js and tmpl