Help with Button with A Drop Down List and previous and next function for a Dynamic Page

Hi. I’ve been trying and trying to get the code to work. After many attempts, I am experiencing a parsing error: unexpected token. Have no idea what that means. Can you determine from this image?

Even when I deleted the above }); the same error. What am I doing wrong?