removes pubs and subs out of index.html