another stab at making ajax work!

Signed-off-by: Chris Jones <chris@jonezy.org>