[IMP] js update based on box types