Simplification of jQuery#contents method