modified the code to use OneWire.js as import/require.