Added AJAX support

Signed-off-by: Elliot Condon <e@elliotcondon.com>