fix js cookie