save pet id to cookie in pet js