AJAX preview and editing: issue #21