Pure Javascript implementation for truly checking if the provided input is an IP address. Based on RFC (IPv4) RFC 6052 (IPv6)