MBH: split cookie.js in to three files