Use namespaces in js urls & api contoroller