[JS] Fixed _getFormattedResource: While code did correctly copy C# version that limited JS needs for requests relative to host, a non-need in C#