Update smooth-scroll.js

Wait till document is ready