Writing logs url to a text file for WinJS store app