Cleaning of browsing tpl scripts