A simple cash register made from JavaScript