Adding $.fn.getBlock and $.fn.getElement functions