JS: fixing deleted line