remove trailing comma
fire change event if new files are added