Moves Crosshair HTML generation logic.