var point_x = { coord_x : 0, coord_y : 0, PrintCoordinates : function() { console.log(this.coord_x, this.coord_y); } }