Fix front-end AJAX errors introduced in 83a6194.  Note: This still doesn't actually work, it seems.