Correct cookie save

#63
removed domain from cookie set.
moved cookie logic to it's own .js file.

Lisa tested and it's working for her now.