Changed the call order.
The first function to be called is now AjaxUpload.