node.js identity detection