Typescript Loop Through String Javascript Functions With Parameters