Adds closest method support.

Its similar to [Closest](http://api.jquery.com/closest/) jQuery API.

Performance tests here: http://jsperf.com/closestmetodtest