update js components and debug it