dynamic instantiation of html2js tasks