Front-end now reads json from server and constructs a table