Improve javascript code comments for group model