Added debug info and fixed a bug

console.log(TAG+'step=1, info='+info);
        if (info && info[0] !== '{') {
            info = '{\"type\": \"'+info+'\"}';
            console.log(TAG+'step=1.2, info='+info);
        }