This is an example I swiped from Vinish Kapoor, which shows that live javascript objects can play nicely with the rest of the engine. The list is stored in your browser's local storage. If you want the application without the rest of the stuff around it you can access it directly here

index.txt The Cuneiform writeup for this page
style.css The CSS Style sheet from the app (verbatim from Example)
todo-list.js The javascript from the app (verbatim from Example)
todo.html A raw HTML file running the app (verbatim from Example)