Fixed cookie saving due to update to jQuery 1.9