removes unused javascript