AngularJS directive to load content as the page scrolls towards the end of the document