Some example scripts written in JS that interface with an arduino using the 'johnny-five' node.js library. Most of these also interface with jabber in some way. These scripts were the product of an hour's worth of experimenting with using JS to program Arduinos.
You need to have node.js and npm installed
You also need to install the 'node-xmpp' and 'johnny-five' libraries via npm:
npm install node-xmpp
npm install johnny-five
There are also some config values to change (mainly jabber uid/password) within the scripts.
When you are ready to run, just run as a normal node.js script:
node script_name.js