Use javasript event only instead of href for avatars

Thanks for contributing the code, though, that’s always appreciated :+1: