added moneyCounter.js

Working version. Still might need to do more error-checking to avoid
problems with attributes with a current value of "".