A JavaScript Subnet calculator