TStMerger javascript