fix js rendering