Fix minor ajax callback bug

Signed-off-by: Andreas Pieber <anpieber@gmail.com>