[JS] Added the switch for documentation editor