Typescript Array With Key Value Javascript Compiler