parts.forEach(function( a, i ) {
            newparts.push.apply( newparts, a );

            if ( i < parts.length - 1 ) {
                newparts.push( ',' );