Adding emulate-onoff.js basic functionality to test code on a PC