function changeCircuitName(name, id = globalScope.id) {
    name = name || 'Untitled';
    name = escapeHtml(stripTags(name));
    $(`#${id} .circuitName`).html(`${truncateString(name, 18)}`);
    scopeList[id].name = name;
}
Used to change name of a circuit
@param {string} name - new name
@param {string} id - id of the circuit
@category circuit