Added Error Handling

Extended the index.html file and reimplemented the getJSON jQuery in
controls.js to allow for error handling.