attr() can now take a key:value object to use for DOM attributes.