Here’s a screen shot of the code. I removed the extra } form line 1019. Still not working on the phone and iPad.

Here’s a screen shot of the code I added:

Here’s the code that was originally there, which I had to put back: