Added editor code, which is available at editor.html