Update scripts.js

Edited so anchor links won't open the "more info" section if it is empty.