Typescript Get Input Text Value Javascript For Loop