Update cookie_single.js

Added a function that checks if a input is higher than the score stored in a cookie, and sets the cookie score to the posted score if yes.