Only run namespace select js when needed

Only needed in admin/projects.
Merge pull request #8125 from cirosantilli/namespace-select-js-only-needed

Only run namespace select js when needed