Is it possible to create a variable in javascript or jquery and store a cookie in it for a certain X time?