Add HTMLCollection to the list of element types for the on function