Namespaces fixes for modules and grunt requirejs plugin to optimize