Each script is entirely contained in a namespace to avoid naming conflicts between scripts. The script namespace is specified in the @namespace field of the script header. The entire content of the script must be contained in the namespace, as below.
MYS =
{
// all parts of the script are contained in the namespace
}