fix another sublist update bug with some more js ugliness