change $.ajax#complete to $.ajax#error, fix specs