update js main