Adding the AJAX call to NodeAPI