pull HTML attributes into a separate object