CAP-164:  Fix the JS for roles