Now using a library for DOM replacements

Replacements with tags in strings now working