add JavaScript to keep money in the right format at all times