Ajax implementation for fileupload