Update namespace.js

support initializer closure