update js script