I’m looking for equivalent functionality to C# regions in javascript

C# syntax

#region RegionName

public static void MyFunction()
{
    [mycode]
}

#endregion

This allows me to “collapse” my code in my .js file with Visual Studio and make it a little more manageable.

Anybody got any ideas?

Edit
Report