Javascript Create Map From Array Of Strings Size Of Short