live-edit JavaScript