use an anchor tag for parsing URLs instead of a regex
parens around string building
separate tests
Merge pull request #1046 from mastahyeti/better_crossDomain_check

Use an anchor tag for parsing URLs instead of a regex