How about using a variable to avoid repetitive usage of ``config[this.jsonSection][this.platform]`` ?
and put a ``if`` around th call the ``setValue`` and ``setActiveTitle ?

This will make the code more readable.