Make javascript 'nspace' conform to corresponding lua example.