Foundations for ajax uploader