Ajax Uploader refactored