Completion of ExchangeBean.js