Small bugfixes for CNTLM.js