The file upload widget is dependent on a templating js code by the same author. I'd rather things were a bit simpler, although it's probably a reasonable way of doing things. However, the best solution is probably to completely redo the file upload by hand rather than try to change the existing code much more.