Update script.js

Added setInterval complete function to animate effect.