A port of Caret to the WinJS platform