update js script and home animation