I don't think you're doing anything wrong at all - that's just what the OneWire object looks like.
You can then just call methods on it - see the DS18B20 library for an example:
http://www.espruino.com/modules/DS18B20.js
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I don't think you're doing anything wrong at all - that's just what the OneWire object looks like.
You can then just call methods on it - see the DS18B20 library for an example:
http://www.espruino.com/modules/DS18B20.js