Changed call to Mojo::DOM->attrs to Mojo::DOM->attr, as the attrs method has been deprecated and now removed