Adjusted the <script/> tags to address race conditions.  Scripts were running
before the <div/> tags being populated were created.  Not sure it's fixed yet.