heavily improved smart editor; added ajax load with html5 upload event