Should this be using the injectable $document object?