Cookies might sound like magic, but they're quite simple to create. Let's see how easy it is to make one in JavaScript.