Removed JSON encoding of cookie (Javascript VS PHP differences)