Some improvements on ajax! Still not quite there.