TypeScript / Javascript to transform BBCode into html with no required dependencies