Fix cookies, and return offer as json