Render txt2tags syntax with javascript