Correct cookie save

#63
removed domain from cookie set.
moved cookie logic to it's own .js file.
Merge pull request #65 from synergy55inc/CookieFix

Correct cookie save
Close #63