Ajax library with XHR2, promises and request limitation