Update HTML on copying when preview is hidden

Fix #133