build.py generates the js closures for each namespace