BibDocFile: javascript fixes

* Preloads jquery.form via a dummy require.js script.

* Addresses #1900.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
Reported-by: Petr Broz <petr.broz@gmail.com>