implamented mock cookie and localstorage impl for node.js