removes last remnant of plain javascript