Rewrote calculator script to display a UiApp panel rather than a series of alert boxes