function setCookie(c_name, value) {
var exdate = new Date();
exdate.setDate(exdate.getDate() + 7);
document.cookie = c_name + "=" + escape(value) + ";path=/;expires=" + exdate.toUTCString();
}
var currentCookie = getCookie('gitlist-bootstrap-theme');
var themeList = $('#theme-list');
for(var key in themes) {
var menu = '<li class="' + (currentCookie === key ? 'active' : '') + '" style="text-transform: capitalize"><a href="#" data-theme="' + key + '" class="theme-link">' + key.substring(10) + '</a></li>';
themeList.append(menu);
}