Added method up() to traverse up in DOM until filter function return true
Did changes to minified version