Please call ``this.saveCookieJar();`` from within ``onLoadFinished`` function in main ``phantomas`` object.