URL check was not reliable for urls that included special chars like '~'. using node's url module to help identify if it's a url.
adding tests for checkURL changes
Merge pull request #6 from fastfrwrd/master

Thanks for catching and submitting a pull request for this.