extend js-widget API for onTurnOn() and onTurnOff()