fix typo in ajaxify, closes #2279