Update controller.js

Adding changes to enable a modal window to pop requesting the amount of cash paid (to calculate change and print it in the ticket)