about to try translating the conversion algorithm of tmx files in javascript