switch from jqx and q to xhttp and es6-promise