Gavin Gear of the Ink team has created a WinForms app that takes a XAML string and turns it into a javascript variable.  Very handy for calling createFromXaml.