Converts HTML contents to Angular TemplateCache module or JSON object