I'm working to forge that connection more explicitly myself.  The idea of "frames" (as in time frames, frames of file, intervals of action) figures in.

Kirby

"frames of film" I meant to say (not "file").

The browser window frame = puppet theater is part of it.  JavaScript pulls the string of its "DOM-puppets". 

Then there's a "back stage" where the client makes calls to the server via whatever protocols....

...while the show on stage continues, lets hope smoothly (at whatever frame rate).

Kirby