changed Mojo::DOM objects to be scalar-based instead of array