Javascript Array Get First Element From Array To Hashmap C