Minor updates to the workaround for Uri class and JS for WinPhone