// using $skin/scripts/SN/SN.Util.js
// resource MyClass
From here onwards you are able to access the provided string resource keys via the SN.Resources object as simple strings. For example:
var labelText = SN.Resources.MyClass.LabelText;
The SN.Resource.<className> object contains all the keys that are defined in the CMS for the given class, for the actual language settings.