Style note, in case you didn't pick up on it, I tend to put the Angular services together and keep things alphabetized. It's easier to find what I'm looking for. Add '$filter' after '$document'. One of my favorite things about dependency injection is that the order doesn't affect callers, so we're free to make the code as readable and maintainable as possible.