Typescript Convert Array To String Javascript Functions