Update manage.js

use val() instead of attar('value') to get newgroupname