delete folder after delete callback
refactor uploader javascript