Create money counter javascript

This is the javascript portion of the money counter webpage.