render txt2tags with javascript