a few changes for my purposes (work with recent Etherpad Lite)