Started adding the Ajax to the Market select

Also redid the json structure to make more sense in javascript.