Change js structure with namespace.