Using indirect eval instead of script injection since it seems to work as well in IE11, Safari 7, and the latest Chrome and Firefox.
Use a slightly less insane (debatable) workaround for bug in Safari when there's a port number in sourceURL.