- fixed the regex problem where the html ids were not being replaced properly