Only run avatar chooser Js on pages that need it [failure unrelated]

Before this PR, that code was run on all pages, making our app slower =(

 Now it uses the dispatch system to run only when needed! Yay.

`$ ->` is evil.