refactoring integrace jquery file upload