NukeCookie doesn't work with port numbers in host

I had a problem where my cookies wasn't deleted after displaying flash message, resulting in displaying same flash message on each page reload, until it was overwritten with new one.
I found the problem was port number in expireHost variable (it happened on my localhost). Added some line to remove it, now works fine for me.