Create cookie_single.js

Made a new cookie handling javascript, this one creates a single cookie per user as the other one created one cookie with all users and their info in it, and it didn't work well when there already was a cookie in the document.