Clean noscripts in filter function