Writing logs url to a file Winstore WinJs app