window: Break hovertext out into a function so it can be called from elsewhere
window: Implement Save as HTML