updated scripts.js for javascript scroll