updated script.js