Update scripts.js

Styling fix for galleries that are shown in the search results