Update scripts.js

Styling fix for galleries that are shown in the search results
Merge pull request #68 from Kevincredible/patch-51

Update scripts.js