A couple years ago I wrote an Emacs mode called
Skewer (
demo video) for accomplishing the live editing part with JavaScript in a running browser page. I've used it in a number of projects to minimize refreshing/restarting during development, including two HTML5 games. Unfortunately live editing is not compatible with some giant client-side frameworks like Angular, which has limited its usefulness in that domain.
But I've never recorded and played back user input. Even though I've seen Bret Victor's stuff before, it never occurred to me until day 23!