Possible fix for IE8 dialog box error.
Merge pull request #137 from bjanish/js-fix-for-url

Possible fix for IE8 dialog box error.