JavaScript class for calculating optimized subnet masks for nonstandard IP ranges, e.g. 5.4.3.21 - 6.7.8.9