jQuery plugin to determine the which side you enter or leave the element