solve an error where Modules was used too early by moving the etherpad code in a function