catching an event when the upload ends
got rid of form.on(end)