updates purchases.js to include the js for balanced