#5 index.html queries the backend and displays list of records

What's with all that code duplication?