JS on Firefox OS can talk to non-web enabled world. You have APIs to do TCP, Bluetooth and USB. Also APIs to do GPIO and I2C from JS are being developed. You can talk to more things than just http servers.