script.js: fixed animate call