IP Calculator Javascript