Replace hard coded js namespace with a variable