SWC-528: javascript callback to a java method, use xhr.upload.onprogress