deposit: saner deposit/form.js

* Refactoring into require.js

* Factoring out all the useful templates and converted into string the
  simpler ones.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>