Pure javascript AngularJS directive to make elements stick when scrolling down