update js and py to work with new pyuploadcare and widget