Fix related to showing favorites

Not sure if Chrome changed, but the "onclick" attribute hasn't been directly readable on my machine. This fixes the problem by requesting the attribute a different way.