messed code up with } & )'s

Download Visual Studio Code and then paste in your code and save that file as a .js file and it will lead you to the correct errors regarding missing or to many {} () I use it daily for that.