jQuery plugin to run a function when an element is within the viewport