JavaScript code may programmatically refer to resources. String resources are accessed through WinJS.Resources.getString(), which internally, when run in the local compartment, calls the WinRT Windows.ApplicationModel.Resources APIs.