update js mini-project