Update index.js

Optimize the isWebURI() function