Loads of work on jshint fixes

It turns out there is a LOT of jshint failure in UploadWizard. So,
I'm going to split this into (at least) two patches. This is the first.
I've gone down the list of javascript files in resources/
alphabetically.

Bug: 47161
Bug: 50322
Change-Id: I5f35a701843baa19cd3aceaec0cc45b82a49dffe