Convert rename_group to js.erb