fix js errors in lists