update js for wizard