Update script.js

add nav animations