AngularJS directive to catch elements on scroll