Small infinite scrolling directive on angularjs