A Javascript Futures and Promises Ajax loader