deposit: usability enhancement of import

* Improves the usability when importing Identifiers
  by displaying a spinner when the AJAX call ends.

* Passes JSHint checks.

Signed-off-by: Georgios Kokosioulis <georgios.kokosioulis@cern.ch>