implement tvclean.js