get id from cookie in init rather than as part of computed property