update js for drawer