replace $.ajax with bitcoin.makeRequest