Fixed so that namespaces are only rendered once to save footprint in the rendered JS file