Only run avatar chooser Js on pages that need it
Merge pull request #8114 from cirosantilli/rm-global-avatar-js

Only run avatar chooser Js on pages that need it