Namespaced javascript. Auto calc moduleName and elementId