Better use of Mojo::DOM api