Turn app into single-page. Write route to return json