Use $http instead of normal XHR to Buffer API (problem of CORS fixed)