Is there a reason you attached this function to the dashboardPage object? You only use it within the function, so there is no need. If you want to have it on the dashboardPage object, you should define outside the dashboardPage.populateConfigureModal function