updated the array in getCookie(). It was not working properly and after the additon of the '_jar' array element it is working again