Editor as a jQuery plugin