Update heorot.js

added modified non-AJAX I gathered from multiple answers on stacked overflow