Typescript Array With Key Value Pair Javascript Compiler