Add parameters to AJAX in getByName function.