Start adapting editor into jQuery plugin