Remove debug logging
Use $.offset() instead of $.position()