Update script.js

Added parameter 'linear' to animate effect.