finish careditor into jquery plugin
move most of the rest of the javascript out of the html including onclick handlers