Fix group rename bug

http://manage.dimagi.com/default.asp?48588
This is the reason for the proposed update to .jshintrc. However, that makes the tests fail, and will require a rather large commit to clean up all the violations.