@Charles:

Very nice. I didn't read the whole thing, but it seems like you can even mix PhoneGap and WinJS in the same project.