Ajax library with XHR2, promises and requests limitation