A function to check if element is in Viewport
$("#test").isInViewPort()