updates main.js
updates main to charge payments