AJAX Bug Fixed

* Props to @trepmal on Twitter for spotting the problem.
* AJAX callback needed to return a string rather than an integer as the die() parameter, because JS was comparing results literally.