refactoring js style
starting version 1.2
cleaning js code and add a warning if participants cannot be retrieved