Refactored part of the logic for setting the viewer size initially.
Added more html testing pages.