update js for server