Add two methods present in the jquery Promise object