Javascript Cookies handling (uses cookie.js to not reinvent the wheel)