ajax cookies fix