Data will be from an external file. It will formatted as an XML file (this could be easily be a html file). It will be be parsed using JQuery library. We could do this with raw JavaScript but why would you want to do that when there is a simpler solution?
To learn in detail how this thing works read this.