adds function getAncestor

This recursive function travels up the DOM to find the next ancestor of the provided element with the provided class.

I really like the idea of avoiding jQuery when all you need is travel through the DOM. I think one function to travel the other direction would be a nice addition.