from getJSON to js xmlhttp and some progress