Caching notifications element.

Common minor optimization, instead of grabbing the `#notifications` element from DOM every time, we cache it in a variable, and we use that for reference.