replace jQuery.ajax to snack.request for some ajax calls