Capture user events in the browser and replay them.