An implementation of Bootstrap's scrollspy and affix functionality for AngularJS