deposit: save form fields after import

* Saves field content after importing data from an external source,
  this way the fields keep the content after a page close or refresh.

* Fix jshint error.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>