javascript get array from map values