node.js IP subnet calculator