Refactor delete cookie in to RESUtils function
Also added safari