Typescript Get Enum Value From String To Object In Javascript