#region to JS