figuring out how to use ajax to insert an element editor