javascript client + example use in node.js