latest js tweaks for fileupload