jquery file upload bug fix and debug