fixed $.offset().top usage

As per API definition offset() returns the position of the FIRST element, using $this will cause to return always the same value.