isolated ajax method to allow new techniques and ajax implementations such as ajaxq and promisses