changed to getJSON and added success error complete callbacks