moved jQueryCookie outside