var nextCheck = new Date(new Date().getTime() + 5 * 1000); document.cookie = "checkAnnotations=1; path=/; expires=" + nextCheck.toUTCString();