Javascript : strange structure, what does it mean?
===

I'm new commer at javascript, and just learn some basic stuff (function, variable ...) and I don't know so much about complex structure in JavaScript.

When I read the source code of ones web application, there is a big point that I cannot understand. Here the code :


    Helper.using('py.Figures' , function (ns) {
        ns.Point = function (params) {
            ns.Figure.call(this, params);
            this.setType('Point');
    
            this.visual(new Kinetic.Circle({
                radius:5, strokeWidth:2,
                fill:'red', stroke:'black',
                draggable:false
            }));
    
            this.getX = function () {
            };
            this.getY = function () {
            };
            this.getPosition = function () {
                return {
                    x:this.getX(), y:this.getY()
                }
            }

    		ns.Point.distance = function (p1, p2) { // some code }
    		
    		ns.MidPoint = function (params)  { // some code }		
    };

1) First point that I don't know in above code is the first line declaration : 

    Helper.using('py.Figures' , function (ns) {... } );

Many files in this document use this structure. In this document, there is a file name `Helper`, but when I search in this document, I don't see some thing like `py.Figures` (by using Control + F) So, what does it really points to ?

above line something line a function, so what does `function(ns)` meaning in this : it looks like parameter, but I don't think so.

The second point I don't know is :

`ns.Point`, `ns.Point.distance`, `ns.MidPoint` look like method. So, `function(ns)` is a class, right ? And if `ns.Point` is a method, why in this method, there are another methods like `getX` and `getY` and It makes me feel that those looks like a class,too !!!

Sorry if my question is silly, but this code so strange, and I don't see any familar with some language I have learnt (Java, C#...), or another script language too (Python)

Thanks :)
