Update script.js

Add the code bellow : initialize window scroll method