Simplify tag cloud code