Update script.js

Improve continuity of AJAX communication with API JSON feeds.  More frequent updates on failed communication link.

Correct AJAX updates to replace HTML instead of appending to elements.