added ancestors method to Mojo::DOM