make search term from ajax configurable