Update scripts.js

I was missing curly brackets LOL we'll see if this fixes things