tweak code, use Ext.parse_cookie to replace the split-parse method