Added javascript and XAML snippets