added js deposit/withdraw functions