Refactored the logic for creating a time machine viewer in the DOM.
Refactored the viewer resizing logic.