how to add domain to cookie javascript code example Example: check cookies client side const cookies = document.cookie