Javascript Create Map From Array Javascript Length Function In Excel