How to use i2c or spi in Cloud9/javascript?

For what it’s worth, I just noticed that the Beaglebone site now has an i2c demo. It uses drivers for the script so it may require a bit of setup on the OS (I don’t know, I’m still figuring out the driver thing…)