found a bug in the ajax... resolved

Signed-off-by: publicFunction <chris@publicfunction.co.uk>