remove sloppy dom reference variables