correcting js text