converted live_editor into AMD module