jquery plugin to fire registered function on element when it first appears or disappears on browser's viewport