Creating a simple cash register with JavaScript.