Fixed weird error with scripts.js

Active nav links weren’t working.