Mailpile API on NodeJS and AngularJS