Fix to order of JS in update page, to prevent errors in Firefox.

For some reason, this was only an issue in Firefox (Chrome didn't care), which was why it wasn't caught previously. Merging in now, but please take a look when you have a chance, someone.