Organizing Javascript codes from a C# perspective using OOP