Typescript Dynamic Key Value Javascript Function Call