Small JS additions to allow the importer backend to finish CSV uploads. Fixes #1224.