update rc.js so it works with new implementation of rcswitch