What do you want to do with node? This should be very straightforward JavaScript.