updated getCookie() to work with new jar format