Ever wonder how websites keep track of information like birthdays? They do it with a bit of JavaScript.