Add example of work with cookies in javascript