Update index.js

Fixed for scroll