move tag cloud code into ajax / frontend and endpoint.