Update title of every instance of widget using text field

The title is set when a field matches this selector 'input[id*="-title"]', so if you change your variable cName to cName-title or just title it should work.