Moved the parsing of the JSON back into the .done function. Otherwise the UI doesn't load anything