variable and querySelector cleanup