Fix for IE, whose anchor tags don't support an "origin" property.