Fix url retrieval

See http://www.w3schools.com/jsref/prop_doc_url.asp
This refs #281
Merge pull request #334 from ombre42/url-in-window-info

Fix url retrieval