Return the origin of an url
The reference to the document object
The ´url´ for which to get the 'origin'
A string representing the url origin
Return the origin of an url