cleaned up capture.html