fixed a bug in the smooth-scrolls script that caused infinite looping animations