file upload functionality implemented with jquery