Add teardowns for JS tests