A Promise based ajax request helper