jQuery now loads the same date for both the 'next day' and 'previous day' buttons where the ajax then takes into account which button was pressed and runs a query to get the correct next day or previous day.