Optimizing the default javascript and view templates so that stale table rows after an upload successfully processes get removed from the files table