Add classFirst to getNav function.