switch from jqx to xhttp and from Q to es6-promise