Modified code so clicommands uses MozillaCookieJar and is actually able to save cookies