For questions regarding programming ROS nodes in Javascript using the rosnodejs SDK.
rosnodejs is the node.js SDK for ROS 1. It's a native implementation of the low-level ROS protocols needed to implement ROS nodes in node.js, incl. XML RPC calls to the ROS master, TCP communications with publishers and subscribers, conversion from JavaScript objects to binary ROS messages, as well as service calls.