fixed some functions in main.js and add json and xml data. Still can't get default data to display.