some progress on uploading with jquery