Adding a modified implementation of jQuery's offset function which does not use jQuery.contains.
removing debug call