//, create a default, global namespace
var Company = {};
//Use objects to create sub-namespaces
Company.project = {};
//Create the final namespace, including some attributes whose values are functions
Company.project.OA = {
add: function(a, b) { return a b; },
subtract: function(a, b) { return a - b; }
};
//Call
Company.project.OA.add(num1, num2);