undefined check for cookie required in jq cookie 1.4