As reference https://github.com/carhartl/jquery-cookie/commit/cefb0c399960553edae76f91f9fc5470a1c3bc04