jQuery plugin to detecting the end of an input field