parse document.cookie or any other cookie string into object