Build and run ajax queries that return html content