gitweb.js: Introduce code to handle cookies from JavaScript