mate, in js, you are sure to create a namespace like this:
var mySpace ={
propertyA: null,
propertyB: 'ValueB',
MethodA: function()
{
console.log('Iam A method');
}
}
then you can call a method like
mySpace.MethodA();
in practice, it’s good to create one js file per js namespace, it is easy to manage.