Update templates.js

Removed un-needed conditional when building the namespace.