Some work on ajax requests