ENYO-3082: fix jshint error
ENYO-3082: improved traces
ENYO-3082: switchDoc: don't open an already opened doc