Typescript Use String As Variable Names Javascript Error