fix js regression