Update script.js

Fixing Issues for Deposit.