Update namespace
Fix constructor function being run twice if new keyword is omitted