index.js
function formatList(raw) {
    var list;

    if (!raw) {
        return [];
    }

    list = raw.replace(/\(.+?\)/g, '').split(', ');
    list = list.map(function (item) {
        return item.trim();
    });

    return list;
}
function formatList(raw) {
    var list;

    if (!raw) {
        return [];
    }

    list = raw.replace(/\(.+?\)/g, '').split(', ');
    list = list.map(function (item) {
        return item.trim();
    });

    return list;
}
function formatList ( raw ) { var list ; if ( ! raw ) { return [ ] ; } list = raw . replace ( / \(.+?\) / g , '' ) . split ( ', ' ) ; list = list . map ( function ( item ) { return item . trim ( ) ; } ) ; return list ; }
Remove all the strings found within brackets and split by comma.
Remove all the strings found within brackets and split by comma .