A simple jQuery function that prevents the document from scrolling when the element can no longer scroll such as a modal window