fix js input feedback