Now that I've read further, it also seems like this function belongs in the cel-cookie.js file instead since it's an integral part of it.