ajax.js: fix upload progress display in firefox