Namespaces and prototype chain inheritance