Fix index indentation.
Fix js indentation.
Restrict controllers to executed group notify event just once the group has changed.