Use $.fn.position() to take into account margin