Fixed on/off status saving in remote.

Alternate fix using JQuery would be $(this).attr('id') but this is much
simpler (and more efficient).