Use new node js API for some AJAX calls.