Why not use the `$document` service here?