add namespaces to js files