ADEN-1326 Reuse wgEnableRHonDesktop functionality
ADEN-1326 fix JS Unit tests
ADEN-1326 wgEnableRHonDesktop cleanup