How about writing core logic in C# or C++ components and UI in HTML/JS?