Simple Javascript cashRegister project