merged capture/replay into ploma.html
optimized sampled curves a bit