Updated JS function delRole

Commit:  Robert