Refactor to support examples with more widgets

Refactored JS and HTML as needed so pages could support 2, 10, 25, and
50 gauges per page.