Update index.js

Realize the URI/HTTP/HTTPS/Web validation