finish javascript of html5 drag to upload methods.