Change the order of JS to fix a problem with autocomplete initialization...

Fixes the problem in collective.nitf