Bitcoin exchange arbitrage for AngularJS