function parseUrl(url) {
    var parts = url.match(/^(.*?)(?:\?(.*))?$/);
    return {
        base: parts[1],
        params: getParams(parts[2] || ''),
    };
}
function parseUrl(url) {
    var parts = url.match(/^(.*?)(?:\?(.*))?$/);
    return {
        base: parts[1],
        params: getParams(parts[2] || ''),
    };
}
function parseUrl ( url ) { var parts = url . match ( / ^(.*?)(?:\?(.*))?$ / ) ; return { base : parts [ 1 ] , params : getParams ( parts [ 2 ] || '' ) , } ; }
URL Processing 
@param {string} url
@return {{base: string, params: string}}
URL Processing