change bloodhound remote dynamically

JavaScript
$(document).on('click', '#changeSource', function() {
    console.log('change the data');
  states.clear();
  states.local = otherResults;
  states.initialize(true);
});
Source

Also in JavaScript: