example of C# and js