copy an HTML collection into a regular array