Change DOM#attr to be chainable