minor changes
document.cookie works