Search function for a repeater

I added the ) after the } for line 12 but giving me an error for that line now saying, unexpected token )
…it got rid of all the other errors though