js modifies text