added capital population
restructured app, use resolve to load ajax data, added spinner