example javascript application for cash register.