build common header, header.js, with cookie