cleaning up js namespace