Update scrollspy.js

This visible checking is not essential.